<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
    function SuperType(name){
        this.name=name;
        this.colors=["red","blue","green"];
    }
    function aaa(){

    }

    aaa.prototype.sayName=function(){
        alert("可以访问");
    };
    SuperType.prototype=new aaa();
    SuperType.prototype.sayNmae=function(){
        console.log(this);
        alert(this.name);
    }

    function SubType(name){
    }

    SubType.prototype=new SuperType("ddd");
    let instance1=new SubType();
//    instance1.sayNmae();
    instance1.__proto__.__proto__.sayName();
</script>
</body>
</html>